import request from '@/utils/request'

export function getList(params: any) {
  return request({
    url: '/sysRole/list',
    method: 'post',
    data: params,
  })
}
export function addUserRole(data: any) {
  return request({
    url: '/sysRole/save',
    method: 'post',
    data: data,
  })
}
export function updateUserRole(data: any) {
  return request({
    url: '/sysRole/update',
    method: 'post',
    data: data,
  })
}

export function delUserRole(data: any) {
  return request({
    url: '/sysRole/removeByIds',
    method: 'get',
    params: data,
  })
}
export function findRoleById(data: any) {
  return request({
    url: '/sysRole/findById',
    method: 'get',
    params: data,
  })
}
